﻿using Demo.Admin.Application.Contracts;
using Demo.Identity;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace Demo.Admin.Application;

[DependsOn(typeof(AbpDddApplicationModule))]
[DependsOn(typeof(DemoAdminApplicationContractsModule))]
[DependsOn(typeof(IdentityHttpApiClientModule))]
[DependsOn(typeof(AbpAutoMapperModule))]
public class DemoAdminApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<DemoAdminApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<DemoAdminApplicationModule>(validate: false);
        });
    }
}